import request from "@/utils/utils/request";
//查看类型
export function gettype(listtype) {
  return request({
    url: 'http://localhost:9999/jeecg-serviceType/type/typeList',
    method: 'get',
    params: listtype
  });
}
//新增
export function addtype(type) {
  return request({
    url: 'http://localhost:9999/jeecg-serviceType/type/addtype',
    method: 'post',
    params: {
      type: type,
    },
  });
}
//删除
export function deletype(id) {
  return request({
    url: 'http://localhost:9999/jeecg-serviceType/type/dele',
    method: 'post',
    params: {
      id: id,
    },
  });
}
//启动
export function starttype(id) {
  return request({
    url: 'http://localhost:9999/jeecg-serviceType/type/updatestauts',
    method: 'post',
    params: {
      id: id,
    },
  });
}
//查看详情
export function listinfo(id) {
  return request({
    url: 'http://localhost:9999/jeecg-serviceType/type/listId',
    method: 'post',
    params: { id },
  });
}
